package com.suny.systemB.service;

import com.suny.systemB.pojo.User;

import java.util.ArrayList;
import java.util.List;

public class UserServiceImpl implements UserService {

    public List<User> queryAll() {
        List<User>list =new ArrayList<User>();
        for(int i =0;i <10;i++) {
            User user =new User();
            user.setAge(20+ i);
            user.setId(Long.valueOf(i+ 1));
            user.setPassword("123456");
            user.setUsername("username_"+ i);
            list.add(user);
        }
        return list;
    }
}
